package com.upeoe.shiro.chapter5.service.impl;

import com.upeoe.shiro.chapter5.dao.PermissionDao;
import com.upeoe.shiro.chapter5.dao.impl.PermissionDaoImpl;
import com.upeoe.shiro.chapter5.entity.Permission;
import com.upeoe.shiro.chapter5.service.PermissionService;

/**
 * @author ven_hxz
 * @create 2016-07-05 下午2:59
 */
public class PermissionServiceImpl implements PermissionService {

    private PermissionDao permissionDao = new PermissionDaoImpl();

    public Permission createPermission(Permission permission) {
        return permissionDao.createPermission(permission);
    }

    public void deletePermission(Long permissionId) {
        permissionDao.deletePermission(permissionId);
    }
}
